<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>detailmanager</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<div id="detailmanager">
<a href="javascript:history.back(-1);"><img src="<%=basePath%>images/goBack.png"/></a>
</div>
	<center>
		<form
			action="<%=basePath%>servlet/ManagerServlet?m=UpdateManager&id=${dmanager.id }"
			method="post">
			<table style="border-collapse:separate; border-spacing:10px;">
				<tr>
					<td>编号:</td>
					<td><input type="text" name="id" value="${dmanager.id }"
						readonly="readonly"></td>
				</tr>
				<tr>
					<td>姓名:</td>
					<td><input type="text" name="name" value="${dmanager.name}"></td>
				</tr>
				<tr>
					<td>年龄:</td>
					<td><input type="text" name="age" value="${dmanager.age }"></td>
				</tr>
				<tr>
					<td>电话:</td>
					<td><input type="text" name="tel" value="${dmanager.tel }"></td>
				</tr>
				<tr>
					<td>邮箱:</td>
					<td><input type="text" name="email" value="${dmanager.email }"></td>
				</tr>
				<tr>
					<td>密码:</td>
					<td><input type="text" name="passwd"
						value="${dmanager.passwd }" readonly="readonly"></td>
				</tr>
				<tr>
					<td>照片:</td>
					<td><input type="text" name="pic" value="${dmanager.pic}" readonly="readonly"></td>
				</tr>
				<tr>
					<td>是否具有用户管理权:</td>
					<td><select name="umanager" id="umanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr>
					<td>是否具有指导管理权:</td>
					<td><select name="gmanager" id="gmanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr>
					<td>是否具有人才管理权:</td>
					<td><select name="rmanager" id="rmanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr>
					<td>是否具有广告管理权:</td>
					<td><select name="amanager" id="amanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr>
					<td>是否具有论坛管理权:</td>
					<td><select name="bmanager" id="bmanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr>
					<td>是否具有新闻管理权:</td>
					<td><select name="nmanager" id="nmanager">
							<option>是</option>
							<option>否</option>
					</select></td>
				</tr>
				<tr><td><input type="submit" value="修改" /></td><td><a href="javascript:history.back(-1);"><input type="button" value="返回" /></a></td></tr>
			</table>
		</form>
	</center>
</body>
<script type="text/javascript">
	var a;
	if (${dmanager.amanager} == 1) {
		a = "是";
	} else {
		a = "否";
	}
	document.getElementById("amanager").value = a;
	var b;
	if (${dmanager.bmanager} == 1) {
		b = "是";
	} else {
		b = "否";
	}
	document.getElementById("bmanager").value = b;
	var r;
	if (${dmanager.rmanager} == 1) {
		r = "是";
	} else {
		r = "否";
	}
	document.getElementById("rmanager").value = r;
	var g;
	if (${dmanager.gmanager} == 1) {
		g = "是";
	} else {
		g = "否";
	}
	document.getElementById("gmanager").value = g;
	var u;
	if (${dmanager.umanager} == 1) {
		u = "是";
	} else {
		u = "否";
	}
	document.getElementById("umanager").value = u;
	var n;
	if (${dmanager.nmanager} == 1) {
		n = "是";
	} else {
		n = "否";
	}
	document.getElementById("nmanager").value = n;
</script>
</html>
